# Maintainer: duckl1ng <bogdan@sanocki.info>
pkgname=ffms2
pkgver=2.40
pkgrel=0
pkgdesc="Cross-platform wrapper library around FFmpeg"
url="https://github.com/FFMS/ffms2"
arch="all"
license="MIT"
makedepends="
	autoconf
	automake
	ffmpeg-dev
	ffmpeg-libavcodec
	ffmpeg-libswresample
	libtool
	zlib-dev
	"
subpackages="$pkgname-dev $pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/FFMS/ffms2/archive/refs/tags/$pkgver.tar.gz
	ffmpeg-fix-api.patch
	"
options="!check" # No test suite

build() {
	./autogen.sh --prefix=/usr
	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="
407c4b0871f5046b9d364c2946eae88c46eec381b5748530d82918742fd4a36849de590024f8235af2785bd631c0299e591499dc43ae157ff2c6a6f2dab78b67  ffms2-2.40.tar.gz
d11913d36fbc1b3d4797ec8f4f77ff7d89eee3d80c02c594a88ece5e71a749f4f8e4417d9895b7d102226a3f331b2b29014d5882b3b08ca3c5545ceecc133653  ffmpeg-fix-api.patch
"
